package interfaz.Intro;

import org.jdesktop.application.SingleFrameApplication;
import org.jdesktop.application.FrameView;
import javax.swing.JDialog;

/**
 * The application's main frame.
 */
public class InicioView extends FrameView {

    private JDialog menuSeleccionEstandar;
    
    public InicioView(SingleFrameApplication app) {
        super(app);
        initComponents();
        
    }
  
    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        mainPanel = new javax.swing.JPanel();
        botonAcceder = new javax.swing.JButton();
        EtiquetaSubtitulo = new javax.swing.JLabel();
        EtiquetaTitulo = new javax.swing.JLabel();
        EtiquetaPAS220 = new javax.swing.JLabel();
        EtiquetaISO9001 = new javax.swing.JLabel();
        EtiquetaISO22000 = new javax.swing.JLabel();
        EtiquetaISO14001 = new javax.swing.JLabel();
        EtiquetaOHSAS18001 = new javax.swing.JLabel();
        jLabel1 = new javax.swing.JLabel();

        org.jdesktop.application.ResourceMap resourceMap = org.jdesktop.application.Application.getInstance().getContext().getResourceMap(InicioView.class);
        mainPanel.setToolTipText(resourceMap.getString("mainPanel.toolTipText")); // NOI18N
        mainPanel.setName("mainPanel"); // NOI18N
        mainPanel.setOpaque(false);
        mainPanel.setPreferredSize(new java.awt.Dimension(715, 450));
        mainPanel.setRequestFocusEnabled(false);

        botonAcceder.setFont(resourceMap.getFont("cambioGestionAreas.font")); // NOI18N
        botonAcceder.setText(resourceMap.getString("cambioGestionAreas.text")); // NOI18N
        botonAcceder.setName("cambioGestionAreas"); // NOI18N
        botonAcceder.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                botonAccederActionPerformed(evt);
            }
        });

        EtiquetaSubtitulo.setFont(resourceMap.getFont("EtiquetaSubtitulo.font")); // NOI18N
        EtiquetaSubtitulo.setText(resourceMap.getString("EtiquetaSubtitulo.text")); // NOI18N
        EtiquetaSubtitulo.setName("EtiquetaSubtitulo"); // NOI18N

        EtiquetaTitulo.setFont(resourceMap.getFont("EtiquetaTitulo.font")); // NOI18N
        EtiquetaTitulo.setText(resourceMap.getString("EtiquetaTitulo.text")); // NOI18N
        EtiquetaTitulo.setName("EtiquetaTitulo"); // NOI18N

        EtiquetaPAS220.setFont(resourceMap.getFont("EtiquetaISO14001.font")); // NOI18N
        EtiquetaPAS220.setText(resourceMap.getString("EtiquetaPAS220.text")); // NOI18N
        EtiquetaPAS220.setName("EtiquetaPAS220"); // NOI18N

        EtiquetaISO9001.setFont(resourceMap.getFont("EtiquetaISO14001.font")); // NOI18N
        EtiquetaISO9001.setText(resourceMap.getString("EtiquetaISO9001.text")); // NOI18N
        EtiquetaISO9001.setName("EtiquetaISO9001"); // NOI18N

        EtiquetaISO22000.setFont(resourceMap.getFont("EtiquetaISO14001.font")); // NOI18N
        EtiquetaISO22000.setText(resourceMap.getString("EtiquetaISO22000.text")); // NOI18N
        EtiquetaISO22000.setName("EtiquetaISO22000"); // NOI18N

        EtiquetaISO14001.setFont(resourceMap.getFont("EtiquetaISO14001.font")); // NOI18N
        EtiquetaISO14001.setText(resourceMap.getString("EtiquetaISO14001.text")); // NOI18N
        EtiquetaISO14001.setName("EtiquetaISO14001"); // NOI18N

        EtiquetaOHSAS18001.setFont(resourceMap.getFont("EtiquetaISO14001.font")); // NOI18N
        EtiquetaOHSAS18001.setText(resourceMap.getString("EtiquetaOHSAS18001.text")); // NOI18N
        EtiquetaOHSAS18001.setName("EtiquetaOHSAS18001"); // NOI18N

        jLabel1.setIcon(resourceMap.getIcon("jLabel1.icon")); // NOI18N
        jLabel1.setText(resourceMap.getString("jLabel1.text")); // NOI18N
        jLabel1.setName("jLabel1"); // NOI18N

        javax.swing.GroupLayout mainPanelLayout = new javax.swing.GroupLayout(mainPanel);
        mainPanel.setLayout(mainPanelLayout);
        mainPanelLayout.setHorizontalGroup(
            mainPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(mainPanelLayout.createSequentialGroup()
                .addGap(105, 105, 105)
                .addGroup(mainPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(EtiquetaPAS220, javax.swing.GroupLayout.PREFERRED_SIZE, 132, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addGroup(mainPanelLayout.createSequentialGroup()
                        .addGap(23, 23, 23)
                        .addComponent(EtiquetaISO9001))
                    .addGroup(mainPanelLayout.createSequentialGroup()
                        .addGap(57, 57, 57)
                        .addComponent(EtiquetaISO22000))
                    .addGroup(mainPanelLayout.createSequentialGroup()
                        .addGap(80, 80, 80)
                        .addComponent(EtiquetaISO14001))
                    .addGroup(mainPanelLayout.createSequentialGroup()
                        .addGap(104, 104, 104)
                        .addComponent(EtiquetaOHSAS18001)))
                .addContainerGap(328, Short.MAX_VALUE))
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, mainPanelLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(mainPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(EtiquetaTitulo, javax.swing.GroupLayout.DEFAULT_SIZE, 461, Short.MAX_VALUE)
                    .addComponent(EtiquetaSubtitulo))
                .addGap(59, 59, 59)
                .addComponent(jLabel1)
                .addGap(18, 18, 18))
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, mainPanelLayout.createSequentialGroup()
                .addContainerGap(541, Short.MAX_VALUE)
                .addComponent(botonAcceder, javax.swing.GroupLayout.PREFERRED_SIZE, 146, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(28, 28, 28))
        );
        mainPanelLayout.setVerticalGroup(
            mainPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, mainPanelLayout.createSequentialGroup()
                .addGap(15, 15, 15)
                .addGroup(mainPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(mainPanelLayout.createSequentialGroup()
                        .addComponent(EtiquetaTitulo, javax.swing.GroupLayout.PREFERRED_SIZE, 58, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addComponent(EtiquetaSubtitulo, javax.swing.GroupLayout.PREFERRED_SIZE, 14, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(28, 28, 28)
                        .addComponent(EtiquetaPAS220)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addComponent(EtiquetaISO9001)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addComponent(EtiquetaISO22000)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addComponent(EtiquetaISO14001)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addComponent(EtiquetaOHSAS18001))
                    .addComponent(jLabel1))
                .addGap(38, 38, 38)
                .addComponent(botonAcceder, javax.swing.GroupLayout.PREFERRED_SIZE, 41, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(187, 187, 187))
        );

        mainPanel.getAccessibleContext().setAccessibleName(resourceMap.getString("mainPanel.AccessibleContext.accessibleName")); // NOI18N
        mainPanel.getAccessibleContext().setAccessibleDescription(resourceMap.getString("mainPanel.AccessibleContext.accessibleDescription")); // NOI18N

        setComponent(mainPanel);
    }// </editor-fold>//GEN-END:initComponents
    
private void botonAccederActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_botonAccederActionPerformed

    menuSeleccionEstandar = new SeleccionEstandar(getFrame());
    getFrame().setVisible(false);
    menuSeleccionEstandar.setVisible(true); 
}//GEN-LAST:event_botonAccederActionPerformed
    

    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JLabel EtiquetaISO14001;
    private javax.swing.JLabel EtiquetaISO22000;
    private javax.swing.JLabel EtiquetaISO9001;
    private javax.swing.JLabel EtiquetaOHSAS18001;
    private javax.swing.JLabel EtiquetaPAS220;
    private javax.swing.JLabel EtiquetaSubtitulo;
    private javax.swing.JLabel EtiquetaTitulo;
    private javax.swing.JButton botonAcceder;
    private javax.swing.JLabel jLabel1;
    private javax.swing.JPanel mainPanel;
    // End of variables declaration//GEN-END:variables

    
}